<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta name="menu" content="assetMenu" />
<meta name="nav" content="2" />
<meta name="acc" content="0" />
<title>帐号管理</title>
<!--  通用情况下 不引入 js css  表单验证  js 放置到页面中 -->
<%-- ui tabs --%>

<script type="text/javascript"
	src="<c:url value='/ext/ui/jquery-ui-1.8.12.custom.min.js'/>"></script>
<link href="${ctx}/styles/lightness/jquery-ui-1.8.12.custom.css"
	rel="stylesheet" />
<script>

	$(document).ready(function() {
   		$( "#tabs" ).tabs().find( ".ui-tabs-nav" ).sortable({ axis: "x" });
		 $("#planStartDate").addClass("Wate").bind("focus", function(){
	   	 WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		 $("#planEndDate").addClass("Wate").bind("focus", function(){
		 WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		 $("#acceptDate").addClass("Wate").bind("focus", function(){
		 WdatePicker({skin:'whyGreen',maxDate:'%y-%M-%d',dateFmt:'yyyy-MM-dd'});});
		 
	 $("#inputForm").validate({
		 	rules:{
		 		    projKind:{
					  		required:true,
					  		maxlength:3,
					},
					acceptMark:{
						required:true,
						number:true,
					},
					planYear:{
						required:true,
						number:true,
					},
					startPegNum:{
						required:true,
						number:true,
					},
					endPegNum:{
						required:true,
						number:true,
					},
					duration:{
						required:true,
						number:true,
					},
					toBuildLenTotal:{
						required:true,
						number:true,
					},
					toBuildWidth:{
						required:true,
						number:true,
					},
					planInvestmentTotal:{
						required:true,
						number:true,
					},
					finishInvestment:{
						required:true,
						number:true,
					},
					roadsurfaceWidth:{
						required:true,
						number:true,
					},
					roadsurfacePly:{
						required:true,
						number:true,
					},
					designSpeed:{
						required:true,
						number:true,
					},
					lanesNum:{
						required:true,
						digits:true,
					},
					superBridgeNum:{
						required:true,
						digits:true,
					},
					largeBridgeNum:{
						required:true,
						digits:true,
					},
					mediumBridgeNum:{
						required:true,
						digits:true,
					},
					smallBridgeNum:{
						required:true,
						digits:true,
					},
					culvertNum:{
						required:true,
						digits:true,
					},
					overBridgeNum:{
						required:true,
						digits:true,
					},
					superTunnelNum:{
						required:true,
						digits:true,
					},
					otherTunnelNum:{
						required:true,
						digits:true,
					}
			},
			messages: {
				projKind: {
					required: "必须填写工程类型！",
					maxlength:"不能超过三个字符！",
				},
				acceptMark:{
					number:"只能输入数字！",
				}
			}
		});
	 
	 $("#showProjImp").click(function(){
	
		 	var url = "${ctx}/project/sign/build!input.action?id=${orgCode.id}&projectId=${id}";
			window.open(url, "signWindow") 
	 });
	 $("#addDrawingsContrct").click(function(){
			var url = "${ctx}/project/drawcontract!input.action?projectId=${id}";
			var obj = new Object();
		    mm = window
					.showModalDialog(
							url,
							obj,
							'dialogHeight:500px;dialogWidth:780px;status:no;toolbar:no;resizable:no;menubar:no;location:no;scrollbars:no;dialogLeft:'
									+ (screen.width / 2.0 - 500) + ',dialogTop:1000')
	 });
	});
	

</script>
</head>
<body>
<form action="projectinfo!save.action" method="post" id="inputForm"
	class='yform'>
<div id="tabs">
<ul>
	<li><a href="#tabs-1">基本信息</a></li>
	<li><a href="#tabs-2">规模概况</a></li>
	<li><a href="#tabs-3">主要技术标准</a></li>
</ul>
<div id="tabs-1">
<table width="200" class="noborder">

	<tr>
		<td>工程类型：</td>
		<td>
		<pt:code name="projKind" category="3001" default="${projKind}"></pt:code>
			<input name="id" value="${id}" type="hidden"/>
			<input name="status" value="${status }" type="hidden"/>
			</td>
		<td>项目编号：</td>
		<td><input name="projCode" type="text" value="${projCode }" /></td>
	</tr>

	<tr>
		<td>项目名称：</td>
		<td><input name="projName" type="text" value="${projName }" /></td>
		<td>所在的地区：</td>
		<td><input name="area" type="text" size="6" value="${area}" />市
		<input name="atTown" type="text" size="6" value="${atTown}" />镇/乡 <input
			name="atVillage" type="text" size="6" value="${atVillage}" />村</td>
	</tr>
	<tr>
		<td>建设单位:</td>
		<td><input type="text" name="organization.orgName" value="${organization.orgName }"/>
			<input type="hidden" name="orgCodeId" value="${organization.id }"/>
		</td>
		<td>监督单位：</td>
		<td><select name="superviseCode">
			<option>东莞质检</option>
			<option>深圳质检</option>
		</select></td>
	</tr>
	<tr>
		<td>开工时间：</td>
		<td><input id="planStartDate" name="planStartDate" type="text"
			value="<fmt:formatDate value='${planStartDate}' pattern="yyyy-MM-dd" />"></input>
		</td>
		<td>完工时间：</td>
		<td><input id="planEndDate" name="planEndDate" type="text"
			value="<fmt:formatDate value='${planEndDate}' pattern="yyyy-MM-dd" />" /></td>
	</tr>
	<tr>
		<td>工期(月)：</td>
		<td><input name="duration" type="text" value="${duration }" /></td>
				<td>建设性质：</td>
		<td ><pt:code name="buildKind" category="3002"
			default="${buildKind}"></pt:code></td>
	</tr>
	<tr>
		<td>计划类型：</td>
		<td><pt:code name="planType" category="3003"
			default="${planType}"></pt:code></td>
		<td>计划年度：</td>
		<td><pt:labels name="planYear" type="yearNum"
			default="${planYear}"></pt:labels></td>
	</tr>
	<tr>
		<td>建设依据：</td>
		<td><textarea name="buildAccording" rows="2" cols="60">${buildAccording}</textarea></td>
	</tr>
	<tr>
		<td>备注：</td>
		<td colspan="3"><textarea name="remark" cols="60" rows="3">${remark}</textarea></td>
	</tr>
</table>

</div>
<div id="tabs-2">
<table width="200" class="noborder">
	<tr>
		<td>工程概算(万元)：</td>
		<td><input name="planInvestmentTotal" type="text"
			value="${planInvestmentTotal}" /></td>
		<td>总里程数(公里)：</td>
		<td><input name="toBuildLenTotal" type="text"
			value="${toBuildLenTotal}" /></td>
	</tr>
	<tr>
		<td>建安投资：</td>
		<td><input name="buildInvestment" type="text"
			value="${buildInvestment}" /></td>
	</tr>

	<tr>
		<td>起点桩号：</td>
		<td><input name="startPegNum" type="text" value="${startPegNum }" /></td>
		<td>终点桩号：</td>
		<td><input name="endPegNum" type="text" value="${endPegNum}" /></td>
	</tr>
	<tr>
		<td>起点名称：</td>
		<td><input name="startPegName" type="text"
			value="${startPegName}" /></td>
		<td>终点名称：</td>
		<td><input name="endPegName" type="text" value="${endPegName}" /></td>
	</tr>
	<tr>
		<td>拟建规模宽：</td>
		<td><input name="toBuildWidth" type="text"
			value="${toBuildWidth}" /></td>
		<td>去年年底已完成投资：</td>
		<td><input name="finishInvestment" type="text"
			value="${finishInvestment }" /></td>
	</tr>
	<tr>
		<td>特大桥数量：</td>
		<td><input name="superBridgeNum" type="text"
			value="${superBridgeNum }" /></td>
		<td>大桥数量：</td>
		<td><input name="largeBridgeNum" type="text"
			value="${largeBridgeNum }" /></td>
	</tr>
	<tr>
		<td>中桥数量：</td>
		<td><input name="mediumBridgeNum" type="text"
			value="${ mediumBridgeNum}" /></td>
		<td>小桥数量：</td>
		<td><input name="smallBridgeNum" type="text"
			value="${smallBridgeNum }" /></td>
	</tr>
	<tr>
		<td>涵洞数量：</td>
		<td><input name="culvertNum" type="text" value="${culvertNum }" /></td>
		<td>立交桥数量：</td>
		<td><input name="overBridgeNum" type="text"
			value="${overBridgeNum }" /></td>
	</tr>
	<tr>
		<td>特长隧道数量：</td>
		<td><input name="superTunnelNum" type="text"
			value="${superTunnelNum }" /></td>
		<td>长中短隧道数量：</td>
		<td><input name="otherTunnelNum" type="text"
			value="${otherTunnelNum }" /></td>
	</tr>
	<tr>
		<td>建设规模：</td>
		<td colspan="3"><textarea rows="5" cols="60"
			name="buildBackgroud">${buildBackgroud }</textarea></td>
	</tr>
	<tr>
		<td>主要工程量：</td>
		<td colspan="3"><textarea rows="5" cols="60"
			name="primeQuantity">${primeQuantity}</textarea></td>
	</tr>
</table>

</div>
<div id="tabs-3">
<table width="200" class="noborder">
	<tr>
		<td>技术标准：</td>
		<td><pt:code category="3006"  name="techGrade" default="${techGrade}"></pt:code></td>
		<td>路面类型：</td>
		<td><input name="roadType" type="text"
			value="${roadType }" /></td>
	</tr>
	<tr>
		<td>面层厚度(cm)：</td>
		<td><input name="roadsurfacePly" type="text"
			value="${roadsurfacePly }" /></td>
		<td>路基宽度(m)：</td>
		<td><input name="roadsurfaceWidth" type="text"
			value="${roadsurfaceWidth }" /></td>
	</tr>
	<tr>
		<td>车道数 ：</td>
		<td><input name="lanesNum" type="text" value="${ lanesNum}" /></td>
		<td>设计速度(km/h)：</td>
		<td><input name="designSpeed" type="text" value="${designSpeed }" /></td>
	</tr>
</table>
</div>
<div class="type-button"><input   type="submit"
	class="submit" value="提交" /> <c:if test="${id!=null}">
	<input id="showProjImp" class="submit" type="button" value="查看项目实施信息"></input>
	<input id="addDrawingsContrct" type="button" value="添加合同段信息"></input>
</c:if> <input   type="button" value="返回" class="reset"
	onclick="history.back()" /></div>
</div>
</form>
</body>
</html>
